package com.tools;

import net.sf.json.xml.XMLSerializer;

public class XmlToJson {
	/*public static void main(String[] args) {
		String xml = "	<TcpCont>		<BusCode>BUS80001</BusCode>		<ServiceCode>SVC80009</ServiceCode>		<SrcOrgID>100000</SrcOrgID>		<SrcSysID>1000000200</SrcSysID>		<DstOrgID>600201</DstOrgID>		<DstSysID>6002010001</DstSysID>		<RouteCode/>		<TransactionID>1000000200201806111383280620</TransactionID>		<ActionCode>0</ActionCode>		<ServiceContractVer>SVC8000920130818</ServiceContractVer>		<ServiceLevel>1</ServiceLevel>		<SrcSysSign>******</SrcSysSign>		<ReqTime>20180611000216</ReqTime>		<PackageGroup>1000000200201806111112305398</PackageGroup>		<TotalPackageNum>1</TotalPackageNum>		<CurrentPackage>1</CurrentPackage>	</TcpCont>";
		XMLSerializer xmlSerializer = new XMLSerializer();

		String result = xmlSerializer.read(xml).toString();

		System.out.println(result);
	}*/
}
